export const abs = num => {
  if (num < 0) {
    return -num
  }
  if (typeof num !== 'number') {
    return NaN
  }
  return num
}

export const add = (...args) =>
  args.reduce((prev, next) => {
    return prev + next
  })
